<html>
<head>
    <title>我的信息</title>
    <#include "../common/header.ftl">
    <script type="text/javascript" src="/chat/js/userInfo.js"></script>
<#--异步上传图片-->
    <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
    <script src="/js/jquery.js"></script>
    <script src="/js/ajaxfileupload.js"></script>
</head>
<body id="body">
<div style="height: 20%;width: 100%"></div>
<div align="center" style="width: 100%;margin-bottom: 20px">
    <form action="/users/update" method="post">
    <input type="hidden" id="myheadImage" name="headImage" value="${userDTO.headImage!""}">
        <img style="border-radius:50%;margin:10px auto"
             src="${userDTO.headImage!""}" id="photo" onclick="choose();"
             width="100px" height="100px">

    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label" style="color: #949fb5">昵称</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" name="nickname" type="text" value="${userDTO.nickname!""}" placeholder="请输入昵称">
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label" style="color: #949fb5">手机号</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" name="phone" type="number" value="${userDTO.phone!""}" placeholder="请输入昵称">
        </div>
    </div>


        <div class="weui-cell" style="margin-left: 6%">
            <div class="weui-cell__bd" style="width: 100%">
                <textarea name="desction" class="weui-textarea" style="width: 100%" placeholder="描述" rows="3" >${userDTO.desction!""}</textarea>
                <div class="weui-textarea-counter"><span>0</span>/200</div>
            </div>
        </div>

        <input type="submit" class="weui-btn weui-btn_plain-primary" value="提交">
    </form>
    <input type="file" id="headImage" name="file" style="display: none;" onchange="uploadHeadImage();"/>
</div>
</body>
<script>
    var uid="${token!""}";
</script>

<script>
    function tip_success(msg) {
        $.toptip(msg,"success");
    }
</script>

</html>